package com.mimosa.common.customer;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.mimosa.common.entity.BaseEntity;

@Entity
@Table(name = "T_Customer_Address")
public class TCustomerAddress extends BaseEntity {
	@ManyToOne(cascade = { javax.persistence.CascadeType.REFRESH })
	private TCustomer customer;

	@Column(length = 6, nullable = false)
	private String postCode;

	@Column(length = 16, nullable = false)
	private String phone;

	@Column(length = 16, nullable = false)
	private String fax;

	public TCustomer getCustomer() {
		return this.customer;
	}

	public void setCustomer(TCustomer customer) {
		this.customer = customer;
	}

	public String getPostCode() {
		return this.postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public String getPhone() {
		return this.phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getFax() {
		return this.fax;
	}

	public void setFax(String fax) {
		this.fax = fax;
	}
}